Hacked to prevent the game from opening empty browser windows.
